package com.zjuh.qss.biz.dao;

import java.util.List;

import com.zjuh.qss.biz.dao.query.ActiveTopicItemQuery;
import com.zjuh.qss.biz.domain.ActiveTopicItemDO;

public interface ActiveTopicItemDAO {

	public long create(ActiveTopicItemDO activeTopicItem);

	public void delete(long id);
	
	public void deleteByTopicId(long topicId);

	public void update(ActiveTopicItemDO activeTopicItem);

	public ActiveTopicItemDO queryById(long id);
	
	public ActiveTopicItemDO queryByItemIdAndTopicId(long itemId, long topicId);
	
	public  List<ActiveTopicItemDO> queryByItemId(long itemId);
	
	public List<ActiveTopicItemDO> queryByTopicId(ActiveTopicItemQuery activeTopicItemQuery);
	
	int queryCountByTopicId(long topicId);
}
